﻿namespace mst_regex
{
    public interface IPersistable
    {
        string ToCsv();
        string ToXml();
        string ToJson();
        byte[] ToProtobuf();

        IPersistable FromCsv(string csv, bool containsHeader);
        IPersistable FromXml(string xml);
        IPersistable FromJson(string json);
        IPersistable FromProtobuf(byte[] proto);
    }
}